/**
 * 
 * @Project le cOeur - Data Virtualization
 * @Date 08.12.2012
 * @Author Aebi Pascal, Kocher Marc
 * @School BFH-TI Biel, Bachelor Thesis
 *
 */

package main.framework;

public interface Service {

	/**
	 * Initializes the service for further use.
	 * 
	 * @throws Exception If an error by the init process occurs.
	 */
	public void init() throws Exception;
	/**
	 * Starts the service.
	 * 
	 * @throws Exception If an error by the start process occurs.
	 */
	public void start() throws Exception;
	
	/**
	 * Stops the service.
	 * 
	 * @throws Exception If an error by the stop process occurs.
	 */
	public void stop() throws Exception;

	/**
	 * Returns if the service is started or stopped.
	 * 
	 * @return True if started, else false.
	 */
	public boolean isStarted();
	
}
